from flask import Flask, Blueprint, render_template, send_from_directory
from apps.common.utils import get_active_theme_name
# 创建main
page_bp = Blueprint('page',
                    __name__,
                    url_prefix='/page')
@page_bp.route('/')
def index():
    return render_template(get_active_theme_name() + '/page.html')


@page_bp.route('/<string:slug>')
def page(slug):
    print("path:"+ slug)
    return render_template(get_active_theme_name() + '/page_'+slug+'.html')